package top.wilbert.collegelink.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.wilbert.collegelink.common.utils.R;
import top.wilbert.collegelink.common.vo.UserResponseVo;
import top.wilbert.collegelink.user.entity.UserEntity;
import top.wilbert.collegelink.user.vo.UserLoginVo;
import top.wilbert.collegelink.common.utils.PageUtils;
import top.wilbert.collegelink.user.vo.UserUpdatePasswordVo;
import top.wilbert.collegelink.user.vo.UserUpdatePhoneVo;

import java.util.Map;

/**
 * @author Augus
 * @email 2531496343@qq.com
 * @date 2022-12-23 20:02:17
 */
public interface UserService extends IService<UserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    UserResponseVo login(UserLoginVo userLoginVo);

    UserResponseVo searchUserByPhone(String phone);

    void setPassword(UserUpdatePasswordVo userUpdatePasswordVo);

    UserResponseVo uploadAvatar(String avatarUrl, Long userId);

    UserResponseVo updatePhone(UserUpdatePhoneVo userUpdatePhoneVo);

    public R smsSendCode(String phone, String authServerConstant);
}

